﻿<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<umbPackage>
  <files>
    <file>
      <guid>PollWidget.ascx</guid>
      <orgPath>~/umbraco/plugins/MapTeamsPolls/Controls</orgPath>
      <orgName>PollWidget.ascx</orgName>
    </file>
	
  </files>
  
  <info>
    <package>
      <name>MapTeamPollsPackage</name>
      <version>0.6</version>
      <license url="http://www.opensource.org/licenses/mit-license.php">MIT license</license>
      <url>http://www.mapits.com</url>
      <requirements>
        <major>3</major>
        <minor>0</minor>
        <patch>0</patch>
      </requirements>
    </package>
    <author>
      <name>MAP Teams</name>
      <website>http://www.mapits.com</website>
    </author>
    <readme><![CDATA[
With MapTeams Polls Package, you can easily create and manage polls for your umbraco site.

Features:
- Easily change the layout without compiling: Html template in one place; Using Mustache templating engine for the server side and client side(reduce duplicate codes).
- ASP.NET 4.0. and jQuery.
- Microsoft Data Access Application Block (Enterprise Library 5.0)
- SQL Server.

Bonus:
- Automate Umbraco package creation using Ruby Rake build script: Download the source code, modify as you like, run the build script to create your own Umbraco package.
- Not tied to Umbraco: The source code can be used in any ASP.NET 4.0 Web Application/Site projects.

Not supported:
- SQL Compact edition

Background:
While porting some of our sites from Joomla to Umbraco, we have problem finding available Polls Widget for Umbraco 4.7.
We decided to extend ClientSideAsp Ajax Polling System (http://www.clientsideasp.net/2009/03/01/aspnet-ajax-poll-using-jquery-a-complete-implementation-with-admin-part/)

Installation:
1. Download the zipped package (and extract the zipped package to get the database scripts).
2. Execute the sql script to create tables and stored proc(there are 2 sql files in the zipped package; one is database create script and the other is database delete script)
3. Install the package to umbraco.
4. Edit the connection string with your database setting; We store the Connection string in web.config at umbracoInstallDir/umbraco/plugins/MapTeamsPolls/Web.config; You can move the connection string to  root's web.config.

How To Use:
1. Manage your polls from admin page:  yourUmbracoAddress/umbraco/plugins/MapTeamsPolls/AdminViewList.aspx (click the create new Poll)
2. Poll Widget is already registered as Macro; you can insert the new macro in your node ("MapTeamsPolls PollWidget") and assign a PollId


Manual installation(Download the ManualInstall Zip file):
1. Remember to backup your bin folder in case there are dll conflicts(Microsoft Enterprise Library).
2. Just extract the ManualInstall.Zip, and copy the content to your umbraco installation directory(the umbraco folder and bin folder).
3. Execute the sql script to create tables and stored proc (located in the zip files).
4. Edit the connection string with your database setting; We store the Connection string in web.config at umbracoInstallDir/umbraco/plugins/MapTeamsPolls/Web.config; You can move the connection string to  root's web.config.
5. Now  you can create a new poll from admin page:  http://yourUmbracoAddress/umbraco/plugins/MapTeamsPolls/AdminViewList.aspx (click the create new Poll)
6. Register  a new macro for the "PollWidget.ascx" manually (we named it "MapTeamsPolls PollWidget" )
7. Poll Widget is already registered as Macro; you can insert the new macro in your node ("MapTeamsPolls PollWidget")


Indra Kurniawan
MAP Teams
http://www.mapits.com]]>
  </readme>
  </info>
  <DocumentTypes />
  <Templates />
  <Stylesheets />
  <Macros>
    <macro>
      <name>MapTeamsPolls PollWidget</name>
      <alias>MapTeamsPollsPollWidget</alias>
      <scriptType>umbraco/plugins/MapTeamsPolls/Controls/PollWidget.ascx</scriptType>
      <scriptAssembly>
      </scriptAssembly>
      <xslt>
      </xslt>
      <useInEditor>False</useInEditor>
      <refreshRate>0</refreshRate>
      <scriptingFile>
      </scriptingFile>
      <properties>
        <property name="Poll Id" alias="PollId" show="True" propertyType="text" />
		<property name="Css File Location" alias="CssFileLocation" show="True" propertyType="text" />
      </properties>
    </macro>
  </Macros>
  <DictionaryItems />
  <Languages />
  <DataTypes />
</umbPackage>